package com.canyou.basic.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.canyou.base.BaseModel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author canyou
 * @since 2020-06-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("basic_sms_send")
@ApiModel(value="SmsSend对象", description="")
public class SmsSend extends BaseModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "接收短信手机号")
    @TableField("phone_number")
    private String phoneNumber;

    @ApiModelProperty(value = "短信模板编号")
    @TableField("template_code")
    private String templateCode;

    @ApiModelProperty(value = "短信模板参数")
    @TableField("para")
    private String para;

    @ApiModelProperty(value = "短信发送错误状态码")
    @TableField("err_code")
    private String errCode;

    @ApiModelProperty(value = "短信发送错误信息")
    @TableField("err_msg")
    private String errMsg;

    @ApiModelProperty(value = "发送回执id")
    @TableField("biz_id")
    private String bizId;

    @ApiModelProperty(value = "短信发送时间")
    @TableField("send_date")
    private LocalDateTime sendDate;

    @ApiModelProperty(value = "短信接收时间")
    @TableField("receive_date")
    private LocalDateTime receiveDate;

    @ApiModelProperty(value = "发送状态 1：等待回执，2：发送失败，3：发送成功")
    @TableField("send_status")
    private Integer sendStatus;

    @ApiModelProperty(value = "短信类型(1: 验证码类型, 2: 通知类型)")
    @TableField("sms_type")
    private Integer smsType;

    @ApiModelProperty(value = "短信内容")
    @TableField("content")
    private String content;

    @ApiModelProperty(value = "是否已经发送(0: 未发送, 1: 已发送)")
    @TableField("is_send")
    private Integer isSend;

    @ApiModelProperty(value = "是否已经重发(0: 未重发, 1: 已重发)")
    @TableField("is_resend")
    private Integer isResend;


}
